﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace QW.Core.Events
{
    public class EventComparer : EqualityComparer<EventData>
    {
        public override bool Equals(EventData x, EventData y)
        {
            if (x.EventId == y.EventId)
                return true;
            return false;
        }

        public override int GetHashCode(EventData obj)
        {
            return obj.EventId.GetHashCode();
        }
    }
}
